package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: ApUserFan
 * Description:
 * date: 2023/8/25 0025 17:16
 *
 * @author zHan
 */
@Data
@TableName("ap_user_fan")
public class ApUserFan implements Serializable {

    private static final long serialVersionUID = 1L;

    public ApUserFan(Integer userId, Integer fansId, String fansName,
                     Date createdTime) {
        this.userId = userId;
        this.fansId = fansId;
        this.fansName = fansName;
        this.createdTime = createdTime;
        this.level = 0;
        this.isDisplay = 0;
        this.isShieldLetter = 1;
        this.isShieldComment = 1;
    }

    /**
     * 主键
     */
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;


    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 粉丝id
     */
    @TableField("fans_id")
    private Integer fansId;

    /**
     * 粉丝昵称
     */
    @TableField("fans_name")
    private String fansName;

    /**
     * 粉丝忠实度
     * 0 正常
     * 1 潜力股
     * 2 勇士
     * 3 铁杆
     * 4 老铁
     */
    private Short level;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;

    /**
     * 是否可见我动态
     * 0 可见
     * 1 不可见
     * 默认为 0
     */
    @TableField("is_display")
    private Short isDisplay;

    /**
     * 是否屏蔽私信
     * 0 屏蔽
     * 1 不屏蔽
     * 默认为 1
     */
    @TableField("is_shield_letter")
    private Short isShieldLetter;

    /**
     * 是否屏蔽评论
     * 0 屏蔽
     * 1 不屏蔽
     * 默认为 1
     */
    @TableField("is_shield_comment")
    private Short isShieldComment;
}
